package org.bee.batch;

import org.bee.apis.AdminApis;
import org.bee.context.JobContext;
import org.bee.json.JsonUtils;
import org.bee.util.SysJob;
import org.springframework.stereotype.Service;

@Service
public class TestBatch implements SysJob {


    private final AdminApis adminApis;

    public TestBatch(AdminApis adminApis) {
        this.adminApis = adminApis;
    }

    @Override
    public void doBusiness(JobContext context) {
        System.out.println(JsonUtils.toJson(adminApis.testRpc()));
    }
}
